package object;

public class IntgerDemo {
    public static void main(String[] args) {
        String s1="27";
        int age=Integer.parseInt(s1);
        System.out.println(age);

        String s2="5.88";
        double price=Double.parseDouble(s2);
        System.out.println(price);





         /*Integer i=5;
        int j=i;





        /*
        Integer i1=new Integer(100);
        Integer i2=new Integer(100);
        System.out.println(i1==i2);
        System.out.println(i1.equals(i2));

        Integer i3=Integer.valueOf(500);
        Integer i4=Integer.valueOf(500);
        System.out.println(i3==i4);
        System.out.println(i3.equals(i4));
        System.out.println(i4.intValue());//将包装类转变为基本类型

         */
    }
}
